home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / QuickTime VR / MacOS / QuickDraw™ 3D 1.0.6F4 SDK / Development / 3DMF parser / 0.9 version / MFLABELS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-24  |  2.7 KB  |  87 lines  |  [TEXT/MPS ]

  1. #ifndef    MF3D_LABELS_H
  2. #define    MF3D_LABELS_H
  3. /*==============================================================================
  4.  *
  5.  *    File:        MFLABELS.H
  6.  *
  7.  *    Function:    Enum/Flags lookup tables
  8.  *
  9.  *    Author(s):    Rick Wong (RWW)
  10.  *
  11.  *    Copyright:    (c) 1995 by Apple Computer, Inc., all rights reserved.
  12.  *
  13.  *    Change History (most recent first):
  14.  *        Fabio    Changed file name to 8 characters
  15.  *        F3K_RWW    GeneralPolygonHint.
  16.  *        F3A_RWW    MeshEdges and OrientationStyle.
  17.  *        F2E_RWW    File created.
  18.  *==============================================================================
  19.  */
  20. #if defined(__COMPILING_ON_MACINTOSH__)
  21. #pragma once
  22. #endif
  23.  
  24. #include <stddef.h>
  25.  
  26. #include "MFSYSTYP.H"
  27. #include "MFTYPES.H"
  28.  
  29. /* Really only needs to be sufficiently large enough to read our text labels */
  30. #define    kMF3D_MaxLabelLength    127
  31.  
  32. typedef    struct MF3D_LabelTable
  33. {    MF3DEnumData    value;
  34.     MF3DCStringPtr    str;
  35. } MF3D_LabelTable, *MF3D_LabelTablePtr;
  36.  
  37. typedef MF3D_LabelTable        MF3D_EnumTable, *MF3D_EnumTablePtr;
  38. typedef    MF3D_LabelTable        MF3D_FlagTable, *MF3D_FlagTablePtr;
  39.  
  40. #define    kMF3D_EndTable    0x00000000, NULL
  41.  
  42. /*==============================================================================
  43.  *    Enum Tables
  44.  *==============================================================================
  45.  */
  46. extern MF3D_EnumTable gMF3D_BooleanEnum[];
  47. extern MF3D_EnumTable gMF3D_ShapeHintEnum[];
  48. extern MF3D_EnumTable gMF3D_FallOffEnum[];
  49. extern MF3D_EnumTable gMF3D_PixelTypeEnum[];
  50. extern MF3D_EnumTable gMF3D_EndianEnum[];
  51. extern MF3D_EnumTable gMF3D_BackfacingEnum[];
  52. extern MF3D_EnumTable gMF3D_FillStyleEnum[];
  53. extern MF3D_EnumTable gMF3D_InterpolationStyleEnum[];
  54. extern MF3D_EnumTable gMF3D_OrientationStyleEnum[];
  55. extern MF3D_EnumTable gMF3D_SubdivisionMethodEnum[];
  56. extern MF3D_EnumTable gMF3D_AxisEnum[];
  57. extern MF3D_EnumTable gMF3D_ShaderUVBoundaryEnum[];
  58. extern MF3D_EnumTable gMF3D_PackingEnum[];
  59. extern MF3D_EnumTable gMF3D_GeneralPolygonHintEnum[];
  60.  
  61. /*==============================================================================
  62.  *    Flag Tables
  63.  *==============================================================================
  64.  */
  65. extern MF3D_FlagTable gMF3D_MetafileFlags[];
  66. extern MF3D_FlagTable gMF3D_DisplayGroupStateFlags[];
  67. extern MF3D_FlagTable gMF3D_PickPartsFlags[];
  68. extern MF3D_FlagTable gMF3D_CapsFlags[];
  69.  
  70. /*==============================================================================
  71.  *    Label lookup routines
  72.  *==============================================================================
  73.  */
  74. MF3DErr
  75. MF3D_MatchLabelByValue(
  76.     MF3D_LabelTablePtr    inLabelTablePtr,
  77.     const MF3DUns32        inValueToMatch,
  78.     MF3DCStringPtr        *outLabelText);
  79.  
  80. MF3DErr
  81. MF3D_MatchLabelByName(
  82.     MF3D_LabelTablePtr    inLabelTablePtr,
  83.     MF3DCStringPtr        inLabelText,
  84.     MF3DUns32            *outLabelValue);
  85.  
  86. #endif
  87.